//
//  MessageTableViewCell.m
//  Youhuiju
//
//  Created by yutenys on 16/7/29.
//  Copyright © 2016年 yutenys. All rights reserved.
//

#import "MessageTableViewCell.h"

@interface MessageTableViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *typeImg;
@property (weak, nonatomic) IBOutlet UILabel *authorLabel;
@property (weak, nonatomic) IBOutlet UILabel *detailLabel;
@property (weak, nonatomic) IBOutlet UIImageView *markImg;

//适配
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imgWidth;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imgHeight;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imgTop;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imgLeading;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *authorLabelLeading;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *detailLabelTop;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *markImgWidth;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *markImgHeight;

@end

@implementation MessageTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.imgWidth.constant = 34 * FitW;
    self.imgHeight.constant = 34 * FitH;
    self.imgLeading.constant = 12 * FitW;
    self.imgTop.constant = 12 * FitH;
    
    self.authorLabelLeading.constant = 8 * FitW;
    self.detailLabelTop.constant = 8 * FitH;
    
    self.markImgWidth.constant = 4 * FitW;
    self.markImgHeight.constant = 4 *FitH;
    self.markImg.layer.cornerRadius = 2 * FitW;
    
    
    
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
